$OpenBSD: patch-spice_macros_h,v 1.7 2016/11/01 15:58:18 jca Exp $

https://bugs.freedesktop.org/show_bug.cgi?id=94570

--- spice/macros.h.orig	Thu Mar 10 17:09:31 2016
+++ spice/macros.h	Tue Nov  1 13:45:19 2016
@@ -381,6 +381,13 @@
 #define SPICE_ENDIAN_BIG    1234
 #define SPICE_ENDIAN_PDP    2143
 
+#include <endian.h>
+#if BYTE_ORDER == LITTLE_ENDIAN
+#  define SPICE_ENDIAN SPICE_ENDIAN_LITTLE
+#elif BYTE_ORDER == BIG_ENDIAN
+#  define SPICE_ENDIAN SPICE_ENDIAN_BIG
+#endif
+
 /* gcc already defined these, use them */
 #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) \
     && defined(__ORDER_BIG_ENDIAN__) && defined(__ORDER_PDP_ENDIAN__)
